<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>消息中心</title>
<link rel="stylesheet" href="../../resource/css/global.css" />
<link rel="stylesheet" href="../../resource/css/userCenter.css" />
<script src="../../resource/js/jquery-1.8.0.js"></script>
<script src="../../resource/js/template.js"></script>
<script src="../../resource/js/pageTemplate.js"></script>
<script src="../../resource/js/result.js"></script>

<style type="text/css">
body {
	background-color: #FFFFFF;
}
</style>
</head>

<body>

<!--header Begin-->
<div id="top_sidebar"></div>
<script>
$("#top_sidebar").load("top.html"); 
</script>

<!--mainContent Begin-->
<div class="mainContent">
	<p class="area">
		首页 > 消息中心</p>
	<div class="leftNav">
		<ul>
			<li class="chose_2"><a href=""><img src="../../resource/images/menu-icon-wu.png" />消息中心</a></li>
		</ul>
	</div>
	<div class="rightContent"  id="tipContent">
		<script id="tipTemp" type="text/html">
		<div class="Usuallypark3 bor01">
			<h2><span>消息中心</span></h2>
       		<div class="back_box message_box" id="bank_box_0" style="display:block;">
				<div class="information_main_box">
					<form id="search_form">
					<table width="100%" border="0" cellpadding=0 cellspacing=0 class="message_center_table">
					  	<tbody>
						  	{{if data.length > 0}}
						  		{{each data as dto}}
								<tr>
								    <td width="9%"  class="transaction_td"><p>[{{dto.title}}]</p></td>
								    <td width="65%"  class="transaction_td"><p style="color:#D86400"><strong title="{{dto.content}}" id="content">{{dto.content.substring(0,90)}}</strong></p></td>
								    <td width="7%"  class="transaction_td"><p>&nbsp;</p></td>
								    <td width="19%"  class="transaction_td"><p>{{dto.time}}</p></td>
							    </tr>
						    	{{/each}}
								{{else}}
								<tr><td style="height: 0px;border-bottom:0px;font-size: 17px;">暂无数据</td></tr>
							{{/if}}
					  	</tbody>
				  	</table>
					</form>
				  	<div class="height_20"></div>
				</div>
				<div class="c"></div>
			</div>
	  	</div>
   		<div class="page">	
			<span  onclick="setPage(1)" >首页</span>
			<span  onclick="setPage(2)">上一页</span>
			<span class="chose_1">{{page.currentPage}}</span>
			<input type="hidden" name="totalPage"  id="totalPage" value="{{page.totalPage}}">
			<span onclick="setPage(3)">下一页</span>
			<span onclick="setPage(4)">末页</span>
   		</div>	
	</div>
	</script>
</div>
<!--mainContent End-->
<!--foot Begin-->
<div id="foot_sidebar"></div>
<script>
$("#foot_sidebar").load("foot.html"); 
</script>
<!--foot End-->

<script>
$(function(){
	getList();
})
function setPage(dir){
	if(refreshPage(dir)){
		getList();
	}
}
function getList(){
	$.ajax({
		type: "post",
		url: "/ydtu/systemtip/getList.htm",
		data:getPage(),
		dataType:"json",
		success:function(data){
			checkResult(data.result);
			var html = template('tipTemp', data);
			$("#tipContent").html(html) ;
		}		
	});
}
</script>
</body>
</html>
